package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Date;
import java.time.LocalDate;
import java.util.List;


/**
 * 销售实体类
 *
 */
@TableName("t_sell")
public class SellBean {
	/**销售ID*/
	@TableId(value = "pk_sellId",type = IdType.AUTO)
	private Integer id;
	/**销售员*/
	@TableField("s_salesman")
	private String salesman;
	/**客户*/
	@TableField("s_client")
	private String client;
	/**销售日期*/
	@TableField("s_sellDate")
	private LocalDate sellDate = LocalDate.now();
	/**订单总金额*/
	@TableField("s_money")
	private Integer   money;
	/**销售明细集合*/
	@TableField(exist = false)
	private List<SellInfoBean> sellInfoList;

	public SellBean(String salesman, String client) {
		this.salesman = salesman;
		this.client = client;
	}

	public SellBean() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSalesman() {
		return salesman;
	}

	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}

	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public LocalDate getSellDate() {
		return sellDate;
	}

	public void setSellDate(LocalDate sellDate) {
		this.sellDate = sellDate;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public List<SellInfoBean> getSellInfoList() {
		return sellInfoList;
	}

	public void setSellInfoList(List<SellInfoBean> sellInfoList) {
		this.sellInfoList = sellInfoList;
	}

	@Override
	public String toString() {
		return "SellBean{" +
				"id=" + id +
				", salesman='" + salesman + '\'' +
				", client='" + client + '\'' +
				", sellDate=" + sellDate +
				", money=" + money +
				", sellInfoList=" + sellInfoList +
				'}';
	}
}
